﻿@using SmartCode
@model BuildContext
@{
    Layout = "../_CSharpLayout.cshtml";
    var project = Model.Project;
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace @(project.Module).API.Messages
{
    public class QueryByPageRequest
    {
[Range(1, int.MaxValue)]
        public int PageIndex { get; set; } = 1;
[Range(1, 100)]
        public int PageSize { get; set; } = 10;
        public int Offset { get { return (PageIndex - 1) * PageSize; } }
    }
}